package com.maxlen.order.feign;

import com.maxlen.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("store-seckill")
public interface SeckillFeignService {

    /**
     * 远程调用：根据 skuId 查询是否是秒杀商品，返回离当前时间最近的秒杀信息
     * @param skuIds
     * @return
     */
    @PostMapping("/seckill/getSkuSeckillBySkuIdList")
    public R getSkuSeckillBySkuIdList(@RequestBody List<Long> skuIds);

}
